<!--{template header}-->


<div class="container">

<div id="side">
    <div class="category-list category-lg">
      <a href="javascript:void(0);" class="category-title"><i class="fa fa-list-ul"></i> 分类 <i class="fa fa-angle-down"></i></a>
      <ul class="category-down">
        {loop $arrNewIndusC $key $value}
        <li class="category-item">
          <div class="category-top">
            {loop $value $k1 $v1}
      {if $k1<2}
            <a href="{$strUrl}&i=$v1['indus_id']"  {if $v1['is_recommend']==1}class="hot"{/if} tabindex="-1">$v1['indus_name']</a>、
      {/if}
      {/loop}
            <i class="fa fa-angle-right"></i>
          </div>
          <div class="category-inner">
            <h3 class="category-inner-title">全部{$arrIndusP[$key]['indus_name']}</h3>
        {loop $value $k2 $v2}
       <a href="{$strUrl}&i=$v2['indus_id']" tabindex="-1" {if $v2['is_recommend']==1}class="hot"{/if}>$v2['indus_name']</a>
       {/loop}
          </div>
        </li>
    {/loop}
      </ul>
  </div>
  <!-- category-list end -->

  <div class="box-header">
    <h2 class="min-title">最新发布动态</h2>
  </div>
   <div class="box-body">
    <ul class="record-list">
    	{if $arrFeedPubs}
    	{loop $arrFeedPubs $k $v}
        <li>
          <p class="record-list-title">
            <a href="$v['event']['url']"><span class="marked marked-shop">{$arrModelLabel[$v['event']['model_id']]}</span> <span class="money"><sub>￥</sub>
			 {if $v['event']['model_id']=='4'||$v['event']['model_id']=='5'}
               	 {$arrCashCoves[$v['event']['cash']]['start_cove']}-<sub>￥</sub>{$arrCashCoves[$v['event']['cash']]['end_cove']}
             {else}
               	 {$v['event']['cash']}
             {/if}</span> $v['event']['content']</a>
          </p>
          <p>
          	<!--{eval $timeDesc = kekezu::time2Units(time()-$v['feed_time'],'hour');}-->
            <time datetime="2008-02-14">{if $timeDesc}{$timeDesc}前{else}刚刚{/if}</time>
            <a href="$v['feed_username']['url']">{$v[username]}</a> 发布
          </p>
        </li>
		{/loop}
		{else}
暂无数据
		{/if}
      </ul>
  </div>
  <!-- 最新发布动态 & box-body end -->


  <div class="box-header">
    <h2 class="min-title">推荐服务商</h2>
  </div>
  <div class="box-body">
    <ul class="record-list img">
    	{if $arrRecommShops}
    	{loop $arrRecommShops $k $v}
        <li>
          <a href="index.php?do=seller&id=$v['uid']" class="avatar" title="$v['shop_name']">
           <!--{userpic($v['uid'],'middle')}-->
          </a>

          <div class="avatar-detail">
            <p class="record-list-title">
              <a href="index.php?do=seller&id=$v['uid']" title="$v['shop_name']">
               $v['shop_name']
              </a>
            </p>
            <p class="record-list-meta">好评率 <span><!--{eval echo $v['good_rate']*100}--><sub>%</sub></span></p>
            <p>
              <span class="marked marked-tags">{$indus_p_arr[$v[indus_pid]][indus_name]}</span>
              <span class="marked marked-tags">{$indus_c_arr[$v[indus_id]][indus_name]}</span>
            </p>
          </div>
        </li>
		{/loop}
		{else}
暂无数据
		{/if}
      </ul>
  </div><!-- 推荐服务商 & box-body end -->
</div>
<!-- #side end -->


<div id="main">

  <div class="for-advertise">
  <!--{ad_show(SHOPLIST_HEAD)}-->

  </div>
  <!-- for-advertise end -->

  <div class="category-list category-xs">
      <a href="javascript:void(0);" class="category-title"><i class="fa fa-list-ul"></i> 分类 <i class="fa fa-angle-down"></i></a>
      <ul class="category-down">
      	{loop $arrNewIndusC $key $value}
        <li class="category-item">
          <div class="category-top">
          	{loop $value $k1 $v1}
			{if $k1<2}
            <a href="{$strUrl}&i=$v1['indus_id']"  {if $v1['is_recommend']==1}class="hot"{/if} tabindex="-1">$v1['indus_name']</a>、
			{/if}
			{/loop}
            <i class="fa fa-angle-right"></i>
          </div>
          <div class="category-inner">
          	<h3 class="category-inner-title">全部{$arrIndusP[$key]['indus_name']}</h3>
			  {loop $value $k2 $v2}
			 <a href="{$strUrl}&i=$v2['indus_id']" tabindex="-1" {if $v2['is_recommend']==1}class="hot"{/if}>$v2['indus_name']</a>
			 {/loop}
          </div>
        </li>
		{/loop}
      </ul>
  </div>
  <!-- category-list end -->

  <div class="tab tab-darken">
    <a href="index.php?do=goodslist"  class="selected">所有商品</a>
  </div>
  <!-- tab end -->


{if $pd||$i||$ky}

	  <ul class="nav nav-pills second-nav">
	  	{if $pd}<li class="active"><a href="{$strUrl}&pd=0">{$arrIndusPInfo['indus_name']} <i class="fa fa-times"></i></a></li>{/if}
	    {if $i}<li class="active"><a href="{$strUrl}&i=0">{$arrIndusInfo['indus_name']} <i class="fa fa-times"></i></a></li>{/if}
	    {if $ky}<li class="active"><a href="{$strUrl}&ky=0">{$ky} <i class="fa fa-times"></i></a></li>{/if}
	    <li>共<!--{eval echo intval($intCount);}-->条类似任务</li>
	  </ul>


  {/if}
  <!-- second-nav end -->
  <!-- 商品列表 -->
  <ul class="list-filter">

    <li>
      <label class="col-xs-1">商品种类</label>
      <div class="col-xs-11 condition">
        <a href="{$strUrl}&m=0" {if !$m}class="selected"{/if}>全部</a>
        <a href="{$strUrl}&m=7" {if $m == 7}class="selected"{/if}><i class="fa fa-male"></i> 服务</a>
        <a href="{$strUrl}&m=6" {if $m == 6}class="selected"{/if}><i class="fa fa-file"></i> 文件</a>
      </div>
    </li>

  </ul>
  <!-- filter end -->


  <div class="tool-bar">
    <div class="actions">
      <a href="{if $o!=1}{$strUrl}&o=1{elseif $o!=2}{$strUrl}&o=2{/if}" class="tool-bar-item {if $o==1||$o==2}selected{/if}" >人气 <i class="fa {if $o==2}fa-long-arrow-up{elseif $o==1}fa-long-arrow-down{/if}"></i> </a>
      <a href="{if $o!=3}{$strUrl}&o=3{elseif $o!=4}{$strUrl}&o=4{/if}" class="tool-bar-item {if $o==4||$o==3}selected{/if}">售价 <i class="fa {if $o==4}fa-sort-numeric-asc{elseif $o==3}fa-sort-numeric-desc{/if}" ></i></a>
    </div>
	{if  $isClose12[v]=="6" && $isShop12[v]=="1"}
	<div class="actions"> <a href="javascript:void(0);" class="tool-bar-item" data-toggle="dropdown">{if $arrCityInfo['name']}{$arrCityInfo['name']}{else}所在地区{/if} <span class="caret"></span></a>
      <ul class="dropdown-menu for-city" role="menu" aria-labelledby="dLabel">
        <li {if !$p}class="active"{/if}><a href="{$strUrl}&p=0">所有地区</a></li>
		{loop $arrDisplaypro $k $v}
        <li {if $p==$v['id']}class="active"{/if}><a href="index.php?do=goodslist&p=$v['id']" role="menuitem" tabindex="-1" >$v['name']</a></li>
		{/loop}
      </ul>
    </div>
	
	{if $two}
			<div class="actions">
		      <a href="javascript:void(0);" class="tool-bar-item" data-toggle="dropdown" >{if $arrCitytwo['name']} {$arrCitytwo['name']} {else}所在地区{/if} <span class="caret"></span></a>
		      <ul class="dropdown-menu for-city" role="menu" aria-labelledby="dLabel" >
				{loop $two $k $v}
		        <li {if $twoid==$v['id']}class="active"{/if}><a href="{$strUrl}&twoid=$v['id']" role="menuitem" tabindex="-1" >$v['name']</a></li>
				{/loop}
		      </ul>
		    </div>
		{/if}
		{if $three}
			<div class="actions">
		      <a href="javascript:void(0);" class="tool-bar-item" data-toggle="dropdown" >{if $arrCitythree['name']} {$arrCitythree['name']} {else}所在地区{/if} <span class="caret"></span></a>
		      <ul class="dropdown-menu for-city" role="menu" aria-labelledby="dLabel" >
				{loop $three $k $v}
		        <li {if $threeid==$v['id']}class="active"{/if}><a href="{$strUrl}&threeid=$v['id']" role="menuitem" tabindex="-1" >$v['name']</a></li>
				{/loop}
		      </ul>
		    </div>
		{/if}
		{/if}
		
  </div>
  <!-- tool-bar end -->
  {if $arrServices}
  <div class="list list-dl">
    <dl class="list-body">
      
    {loop $arrServices $k $v}
      <dd class="list-item">
        <ul class="list-item-body">
          <li class="w5">
            <div class="list-pic">
              
              <a href="index.php?do=goods&id=$v['service_id']" title="$v['title']">
                <img  onerror='$(this).attr("src","tpl/default/img/shop/shop_default_big.png")' alt="$v['title']"    class="lazy" src="tpl/default/img/shop/shop_default_big.png"  data-original="<!--{eval echo keke_shop_class::output_pics($v['pic'],210,1);}-->">
              </a>

               

            </div>
            <div class="list-obj">
              <h2 class="list-obj-item">
                
                 <a href="index.php?do=goods&id=$v['service_id']" class="list-title" title="$v['title']">
                       {if $v['model_id']==7}
                       <span class="list-item-type"  title="服务"><i class="fa fa-male"></i></span>
                   {else}
                   <span class="list-item-type" title="文件"><i class="fa fa-file"></i></span>
                   {/if}
                      $v['title']
                  
                

                  {if $v['goodstop']==1}
                  <span class="marked marked-spread">置顶</span>
                  {/if}

                </a>
                
              </h2>
              <p class="list-obj-item">
                <span class="mr_10">成交数：{$v[sale_num]}</span>
                <span class="mr_10">好评率：<span class="text-danger"><!--{eval $goodrate=CommonClass::getGoodsMark($v[service_id]);echo $goodrate;}-->%</span></span>
              </p>
              <p class="list-obj-item">
                发布者：
                <a href="index.php?do=seller&id={$v['uid']}" class="poster" title="$v['username']">
                  
                 {$v['username']}
                </a>
              </p>
            </div>
          </li>
          <li class="w2d5">
            <p class="list-obj-item text-center">
              <strong class="money money-sm"><sub>￥</sub>$v['price'] / $v['unite_price']</strong>
            </p>
            <p class="list-obj-item text-center">
            <!--{eval $arrAid = keke_user_mark_class::get_user_aid ( $v['uid'], 2, null, 1 );$avgAid=($arrAid[1][avg]+$arrAid[2][avg]+$arrAid[3][avg])/3;$avgAid=number_format($avgAid,1);}-->
              综合评分：<span class="text-danger">{$avgAid}分</span>
            </p>
          </li>
          <li class="w2">
            <div class="row">
              <div class="col-sm-12 mb_10">
                <a href="index.php?do=order&sid=$v[service_id]" class="btn btn-default btn-sm btn-block">购买</a>
              </div>
              <div class="col-sm-6">
               <!-- 收藏  START-->
                  
                {if $v['favorite']}
                        <a href="javascript:cancelGoodFavorite('service',{$v['service_id']});" title="取消收藏" class="btn btn-success btn-xs btn-block" id="favorite{$v['service_id']}"><i class="fa fa-star"></i> 取消收藏</a>
                  {else}
                        <a href="javascript:addGoodFavorite('service',{$v['service_id']});" title="收藏" class="btn btn-default btn-xs btn-block" id="favorite{$v['service_id']}"><i class="fa fa-star"></i> 收藏</a>
                
                 {/if}
                    <!-- 收藏 END -->
              </div>
              <div class="col-sm-6">
                <a href="index.php?do=seller&id=$v[uid]" class="btn btn-default btn-xs btn-block">进入店铺</a>
              </div>
            </div>
          </li>
        </ul>

       
        
        
      </dd>
	  {/loop}
    </dl>
  </div>
  {else}
	   <dd class="list-item text-center">
			<!--{template nodata}-->
       </dd>
  {/if}
  <!-- list list-img  end-->
  <div class="list-page">
    <div class="page-tips pull-left">
      显示 {$strPages['st']}~{$strPages['en']} 项 共 {$intCount} 个商品
    </div>
    <ul class="pagination pagination-sm pull-right">
        {$strPages['page']}
    </ul>
  </div>
  <!-- 商品列表 & list-page end -->

  <div class="for-advertise">
    <!--{ad_show(SHOPLIST_BOTTOM)}-->
  </div>
  <!-- for-advertise end -->

</div>
<!-- #main end -->
</div>
<!-- container end -->

<!--{template footer}-->
